<template>

	<view class="class-item" style="padding: 0">
		<view class="class-name">入院当日</view>
		<view class="g-container">
			<!-- 基本信息 -->
			<div class="part-item">
				<div class="part-title">
					基本信息
				</div>
				<view class="selectCon">
					<view class="label">所属研究中心：</view>
					<view class="con" @click="hospitalShow = true">
						{{ patientInfo.hospital_id_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="hospitalList" :show="hospitalShow"
						@confirm="hospitalConfirm" @close="hospitalShow = false">
					</tui-select>
				</view>
				<view class="selectCon">
					<view class="label">姓名：</view>
					<input type="text" v-model="patientInfo.name" />
				</view>
				<view class="selectCon">
					<view class="label">头像：</view>
				<tui-upload :header="uploaderHeader" :limit="1"
					:value="patientInfo.avatar ? [patientInfo.avatar]: []"
					:serverUrl="fileUploadServerUrl"
					@complete="(e) => { patientInfo.avatar = e.imgArr[0] }" />
				</view>
				<view class="selectCon">
					<view class="label">性别：</view>
					<radio-group class="radio-group" name="sex" @change="e => patientInfo.gender = e.detail.value">
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.gender == 1" color="#5677fc">
							</radio>男
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInfo.gender == 2" color="#5677fc">
							</radio>女
						</label>
					</radio-group>
				</view>
				<view class="selectCon">
					<view class="label">出生日期：</view>
					<view class="con" @click="birthDateShow(0)">{{ patientInfo.birth_date || '请选择' }}
					</view>
					<tui-datetime ref="birthDayPicker" :setDateTime="patientInfo.birth_date" :type="2" :startYear="1900"
						:endYear="2100" @confirm="e => patientInfo.birth_date = e.result"></tui-datetime>
				</view>
				<view class="selectCon">
					<view class="label">联系方式：</view>
					<input type="text" v-model="patientInfo.contact" />
				</view>
				<!-- <tui-select :bottomLeft="300" :multiple="false" :list="nativePlaceList"
					:show="nativePlaceShow" @confirm="confirm" @close="onClose"></tui-select> -->
				<!-- select -->
				<view class="selectCon">
					<view class="label">籍贯：</view>
					<view class="con" @click="nativePlaceShow = true">
						{{ patientInfo.native_place || '请选择' }}
					</view>
				</view>
				<tui-select :bottomLeft="300" :multiple="false" :list="nativePlaceList" :show="nativePlaceShow"
					@confirm="nativePlaceConfirm" @close="nativePlaceShow = false"></tui-select>
				<view class="selectCon">
					<view class="label">体重(kg)：</view>
					<input type="text" v-model="patientInfo.weight" />
				</view>
				<view class="selectCon">
					<view class="label">身高(cm)：</view>
					<input type="text" v-model="patientInfo.height" />
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">ABO血型：</view>
					<view class="con" @click="aboBloodShow = true">
						{{ patientInfo.abo_blood_type_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="aboBloodOptions" text-field="name"
						value-field="id" :show="aboBloodShow" @confirm="aboBloodConfirm"
						@close="aboBloodShow = false"></tui-select>
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">Rh血型：</view>
					<view class="con" @click="rhBloodShow = true">
						{{ patientInfo.rh_blood_type_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="rhBloodOptions" text-field="name"
						value-field="id" :show="rhBloodShow" @confirm="rhBloodConfirm"
						@close="rhBloodShow = false"></tui-select>
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">婚姻状况：</view>
					<view class="con" @click="showPatientInfoSelectType = 'material'">
						{{ patientInfo.marital_status_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="maritalOptions" text-field="name"
						value-field="id" :show="showPatientInfoSelectType === 'material'"
						@confirm="e => patientInfoSelectConfirm(e, 'marital_status', 'marital_status_text')"
						@close="showPatientInfoSelectType = ''"></tui-select>
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">是否是工伤：</view>
					<view class="con" @click="showPatientInfoSelectType = 'work_injury'">
						{{ patientInfo.work_injury_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="workInjuryOptions" text-field="name"
						value-field="id" :show="showPatientInfoSelectType === 'work_injury'"
						@confirm="e => patientInfoSelectConfirm(e, 'work_injury', 'work_injury_text')"
						@close="showPatientInfoSelectType = ''"></tui-select>
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">医保类型：</view>
					<view class="con" @click="showPatientInfoSelectType = 'medical_insurance_type'">
						{{ patientInfo.medical_insurance_type_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="medicalInsuranceTypeOptions"
						text-field="name" value-field="id"
						:show="showPatientInfoSelectType === 'medical_insurance_type'"
						@confirm="e => patientInfoSelectConfirm(e, 'medical_insurance_type', 'medical_insurance_type_text')"
						@close="showPatientInfoSelectType = ''"></tui-select>
				</view>
				<view class="textareaCon">
					<view class="label">现居地：</view>
					<textarea type="text" v-model="patientInfo.current_residence" />
				</view>
			</div>

			<!-- 既往病史 -->
			<div class="part-item">
				<div class="part-title">既往病史</div>
				<view class="selectCon">
					<view class="label">既往病史：</view>
					<radio-group class="radio-group" name="medical_history"
						@change="e => patientInfoRadioChange(e, 'medical_history')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.medical_history == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.medical_history == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">是否有高血压：</view>
					<radio-group class="radio-group" name="hypertension"
						@change="e => patientInfoRadioChange(e, 'hypertension')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.hypertension == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.hypertension == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<view class="selectCon">
					<view class="label">是否有糖尿病：</view>
					<radio-group class="radio-group" name="diabetes"
						@change="e => patientInfoRadioChange(e, 'diabetes')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.diabetes == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.diabetes == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<view class="selectCon">
					<view class="label">是否有心脏病（如冠心病、心力衰竭）：</view>
					<radio-group class="radio-group" name="heart_disease"
						@change="e => patientInfoRadioChange(e, 'heart_disease')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.heart_disease == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.heart_disease == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<view class="selectCon">
					<view class="label">是否有自身免疫病：</view>
					<radio-group class="radio-group" name="autoimmune_disease"
						@change="e => patientInfoRadioChange(e, 'autoimmune_disease')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.autoimmune_disease == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.autoimmune_disease == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<view class="selectCon">
					<view class="label">是否有脑血管意外史：</view>
					<radio-group class="radio-group" name="cerebrovascular_accident"
						@change="e => patientInfoRadioChange(e, 'cerebrovascular_accident')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.cerebrovascular_accident == '0'	" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.cerebrovascular_accident == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<view class="selectCon">
					<view class="label">是否有慢性肝病：</view>
					<radio-group class="radio-group" name="chronic_liver_disease"
						@change="e => patientInfoRadioChange(e, 'chronic_liver_disease')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.chronic_liver_disease == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.chronic_liver_disease == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<view class="selectCon">
					<view class="label">是否有慢性肾功能不全：</view>
					<radio-group class="radio-group" name="chronic_renal_insufficiency"
						@change="e => patientInfoRadioChange(e, 'chronic_renal_insufficiency')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.chronic_renal_insufficiency == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.chronic_renal_insufficiency == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>

				<view class="selectCon">
					<view class="label">是否有慢性阻塞性肺疾病（COPD）：</view>
					<radio-group class="radio-group" name="copd" @change="e => patientInfoRadioChange(e, 'copd')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.copd == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.copd == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<view class="textareaCon">
					<view class="label">其他既往病史（需注明具体情况）</view>
					<textarea style="width: 100%" v-model="patientInfo.other_medical_history"></textarea>
				</view>

				<view class="selectCon">
					<view class="label">治疗模式：</view>
					<view class="con" @click="treatmentModeShow = true">
						{{ patientInfo.treatment_mode || '请选择' }}
					</view>
				</view>
				<tui-select :bottomLeft="300" :multiple="false" :list="treatmentModeList" :show="treatmentModeShow"
					@confirm="treatmentModeConfirm" @close="treatmentModeShow = false"></tui-select>


			</div>

			<!-- 转诊信息 -->
			<div class="part-item">
				<div class="part-title">转诊信息</div>
				<view class="selectCon">
					<view class="label">救治医院名称：</view>
					<input type="text" v-model="patientInfo.hospital_name" />
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">救治医院所在省份：</view>
					<view class="con" @click="hospitalProvinceShow = true">
						{{ patientInfo.hospital_province || '请选择' }}
					</view>
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">救治医院等级：</view>
					<view class="con" @click="hospitalLevelShow = true">
						{{ patientInfo.hospital_level_text || '请选择' }}
					</view>
				</view>
				<tui-select :bottomLeft="300" :multiple="false" :list="hospitalProvinceList"
					:show="hospitalProvinceShow" @confirm="hospitalProvinceConfirm"
					@close="hospitalProvinceShow = false"></tui-select>
				<!-- select -->
				<view class="selectCon">
					<view class="label">本院收治类别：</view>
					<view class="con" @click="showPatientInfoSelectType = 'treatment_type'">
						{{ patientInfo.treatment_type_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="treatmentTypeOptions" text-field="name"
						value-field="id" :show="showPatientInfoSelectType === 'treatment_type'"
						@confirm="e => patientInfoSelectConfirm(e, 'treatment_type', 'treatment_type_text')"
						@close="showPatientInfoSelectType = ''"></tui-select>
				</view>
				<tui-select :bottomLeft="300" :multiple="false" :list="hospitalLevelList" :show="hospitalLevelShow"
					@confirm="hospitalLevelConfirm" @close="hospitalLevelShow = false"></tui-select>
				<view class="selectCon">
					<view class="label switch">在医院有烧伤科 (无/有)：</view>
					<tui-switch scaleRatio=“0.75” @change="e => patientInfo.has_burn_department = e.detail.value"
						:checked="!!patientInfo.has_burn_department"></tui-switch>
				</view>
				<view class="selectCon">
					<view class="label switch">在医院有烧伤重症监护室 (无/有)：</view>
					<tui-switch scaleRatio=“0.75” @change="e => patientInfo.has_burn_icu = e.detail.value"
						:checked="!!patientInfo.has_burn_icu"></tui-switch>
				</view>
			</div>

			<!-- 伤情信息 -->
			<div class="part-item">
				<div class="part-title">伤情信息</div>
				<view class="selectCon">
					<view class="label">受伤日期及时间：</view>
					<view class="con" @click="birthDateShow(1)">{{ patientInfo.injury_date || '请选择' }}
					</view>
					<tui-datetime ref="injuryDateTime" :setDateTime="patientInfo.injury_date" :type="7"
						:startYear="1900" :endYear="2100"
						@confirm="e => patientInfo.injury_date = e.result"></tui-datetime>
				</view>
				<view class="selectCon">
					<view class="label">入院日期及时间：</view>
					<view class="con" @click="birthDateShow(2)">
						{{ patientInfo.admission_date || '请选择' }}
					</view>
					<tui-datetime ref="admissionDateTime" :setDateTime="patientInfo.admission_date" :type="7"
						:startYear="1900" :endYear="2100"
						@confirm="e => patientInfo.admission_date = e.result"></tui-datetime>
				</view>
				<view class="selectCon">
					<view class="label">受伤至入院小时数：</view>
					<input type="text" :value="injury_to_admission_hours" />
				</view>
				<!-- select -->
				<view class="selectCon">
					<view class="label">致伤原因：</view>
					<view class="con" @click="showPatientInfoSelectType = 'cause_of_injuryid'">
						{{ patientInfo.cause_of_injuryid_text || '请选择' }}
					</view>
					<tui-select :bottomLeft="300" :multiple="false" :list="causeOfInjuryidOptions" text-field="name"
						value-field="id" :show="showPatientInfoSelectType === 'cause_of_injuryid'"
						@confirm="e => patientInfoSelectConfirm(e, 'cause_of_injuryid', 'cause_of_injuryid_text')"
						@close="showPatientInfoSelectType = ''"></tui-select>
				</view>
			</div>

			<!-- 烧伤面积评估 -->
			<div class="part-item">
				<div class="part-title">烧伤面积评估</div>
				<view class="selectCon">
					<view class="label">头部浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_head" />
				</view>
				<view class="selectCon">
					<view class="label">头部深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_head" />
				</view>
				<view class="selectCon">
					<view class="label">头部Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_head" />
				</view>
				<view class="selectCon">
					<view class="label">头部IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_head" />
				</view>
				<view class="selectCon">
					<view class="label">颈部浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_neck" />
				</view>
				<view class="selectCon">
					<view class="label">颈部深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_neck" />
				</view>
				<view class="selectCon">
					<view class="label">颈部Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_neck" />
				</view>
				<view class="selectCon">
					<view class="label">颈部IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_neck" />
				</view>
				<view class="selectCon">
					<view class="label">躯干前侧浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_anteriortrunk" />
				</view>
				<view class="selectCon">
					<view class="label">躯干前侧深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_anteriortrunk" />
				</view>
				<view class="selectCon">
					<view class="label">躯干前侧Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_anteriortrunk" />
				</view>
				<view class="selectCon">
					<view class="label">躯干前侧IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_anteriortrunk" />
				</view>
				<view class="selectCon">
					<view class="label">躯干后侧浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_postrunk" />
				</view>
				<view class="selectCon">
					<view class="label">躯干后侧深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_postrunk" />
				</view>
				<view class="selectCon">
					<view class="label">躯干后侧Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_postrunk" />
				</view>
				<view class="selectCon">
					<view class="label">躯干后侧IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_postrunk" />
				</view>
				<view class="selectCon">
					<view class="label">右臀浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_rbutt" />
				</view>
				<view class="selectCon">
					<view class="label">右臀深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_rbutt" />
				</view>
				<view class="selectCon">
					<view class="label">右臀Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_rbutt" />
				</view>
				<view class="selectCon">
					<view class="label">右臀IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_rbutt" />
				</view>
				<view class="selectCon">
					<view class="label">左臀浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_lbutt" />
				</view>
				<view class="selectCon">
					<view class="label">左臀深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_lbutt" />
				</view>
				<view class="selectCon">
					<view class="label">左臀Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_lbutt" />
				</view>
				<view class="selectCon">
					<view class="label">左臀IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_lbutt" />
				</view>
				<view class="selectCon">
					<view class="label">会阴浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_peri" />
				</view>
				<view class="selectCon">
					<view class="label">会阴深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_peri" />
				</view>
				<view class="selectCon">
					<view class="label">会阴Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_peri" />
				</view>
				<view class="selectCon">
					<view class="label">会阴IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_peri" />
				</view>
				<view class="selectCon">
					<view class="label">右上臂浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_rua" />
				</view>
				<view class="selectCon">
					<view class="label">右上臂深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_rua" />
				</view>
				<view class="selectCon">
					<view class="label">右上臂Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_rua" />
				</view>
				<view class="selectCon">
					<view class="label">右上臂IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_rua" />
				</view>
				<view class="selectCon">
					<view class="label">左上臂浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_lua" />
				</view>
				<view class="selectCon">
					<view class="label">左上臂深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_lua" />
				</view>
				<view class="selectCon">
					<view class="label">左上臂Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_lua" />
				</view>
				<view class="selectCon">
					<view class="label">左上臂IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_lua" />
				</view>
				<view class="selectCon">
					<view class="label">右前臂浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_rfa" />
				</view>
				<view class="selectCon">
					<view class="label">右前臂深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_rfa" />
				</view>
				<view class="selectCon">
					<view class="label">右前臂Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_rfa" />
				</view>
				<view class="selectCon">
					<view class="label">右前臂IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_rfa" />
				</view>
				<view class="selectCon">
					<view class="label">左前臂浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_lfa" />
				</view>
				<view class="selectCon">
					<view class="label">左前臂深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_lfa" />
				</view>
				<view class="selectCon">
					<view class="label">左前臂Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_lfa" />
				</view>
				<view class="selectCon">
					<view class="label">左前臂IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_lfa" />
				</view>
				<view class="selectCon">
					<view class="label">右手浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_rhand" />
				</view>
				<view class="selectCon">
					<view class="label">右手深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_rhand" />
				</view>
				<view class="selectCon">
					<view class="label">右手Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_rhand" />
				</view>
				<view class="selectCon">
					<view class="label">右手IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_rhand" />
				</view>
				<view class="selectCon">
					<view class="label">左手浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_lhand" />
				</view>
				<view class="selectCon">
					<view class="label">左手深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_lhand" />
				</view>
				<view class="selectCon">
					<view class="label">左手Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_lhand" />
				</view>
				<view class="selectCon">
					<view class="label">左手IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_lhand" />
				</view>
				<!-- 右大腿 -->
				<view class="selectCon">
					<view class="label">右大腿浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_rthigh" />
				</view>
				<view class="selectCon">
					<view class="label">右大腿深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_rthigh" />
				</view>
				<view class="selectCon">
					<view class="label">右大腿Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_rthigh" />
				</view>
				<view class="selectCon">
					<view class="label">右大腿IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_rthigh" />
				</view>
				<!-- 左大腿 -->
				<view class="selectCon">
					<view class="label">左大腿浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_lthigh" />
				</view>
				<view class="selectCon">
					<view class="label">左大腿深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_lthigh" />
				</view>
				<view class="selectCon">
					<view class="label">左大腿Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_lthigh" />
				</view>
				<view class="selectCon">
					<view class="label">左大腿IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_lthigh" />
				</view>
				<!-- 右小腿 -->
				<view class="selectCon">
					<view class="label">右小腿浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_rleg" />
				</view>
				<view class="selectCon">
					<view class="label">右小腿深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_rleg" />
				</view>
				<view class="selectCon">
					<view class="label">右小腿Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_rleg" />
				</view>
				<view class="selectCon">
					<view class="label">右小腿IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_rleg" />
				</view>
				<!-- 左小腿 -->
				<view class="selectCon">
					<view class="label">左小腿浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_lleg" />
				</view>
				<view class="selectCon">
					<view class="label">左小腿深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_lleg" />
				</view>
				<view class="selectCon">
					<view class="label">左小腿Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_lleg" />
				</view>
				<view class="selectCon">
					<view class="label">左小腿IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_lleg" />
				</view>
				<!-- 右足 -->
				<view class="selectCon">
					<view class="label">右足浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_rfoot" />
				</view>
				<view class="selectCon">
					<view class="label">右足深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_rfoot" />
				</view>
				<view class="selectCon">
					<view class="label">右足Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_rfoot" />
				</view>
				<view class="selectCon">
					<view class="label">右足IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_rfoot" />
				</view>
				<!-- 左足 -->
				<view class="selectCon">
					<view class="label">左足浅Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_ii_lfoot" />
				</view>
				<view class="selectCon">
					<view class="label">左足深Ⅱ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_ii_lfoot" />
				</view>
				<view class="selectCon">
					<view class="label">左足Ⅲ度面积 (%)：</view>
					<input type="number" v-model="patientInfo.superficial_iii_lfoot" />
				</view>
				<view class="selectCon">
					<view class="label">左足IV度面积 (%)：</view>
					<input type="number" v-model="patientInfo.deep_iv_lfoot" />
				</view>
				<!-- 烧伤总面积 (TBSA, %): -->
				<view class="selectCon">
					<view class="label">烧伤总面积 (TBSA, %)：</view>
					<input type="number" :value="tbsa" disabled />
				</view>
				<!-- 浅Ⅱ度总面积 (%): -->
				<view class="selectCon">
					<view class="label">浅Ⅱ度总面积 (%)：</view>
					<input type="number" :value="superficial_ii" disabled />
				</view>
				<!-- 深Ⅱ度总面积 (%): -->
				<view class="selectCon">
					<view class="label">深Ⅱ度总面积 (%)：</view>
					<input type="number" :value="deep_ii" disabled />
				</view>
				<!-- Ⅲ度总面积 (%): -->
				<view class="selectCon">
					<view class="label">Ⅲ度总面积 (%)：</view>
					<input type="number" :value="superficial_iii" disabled />
				</view>
				<!-- IV度总面积 (%): -->
				<view class="selectCon">
					<view class="label">IV度总面积 (%)：</view>
					<input type="number" :value="deep_iv" disabled />
				</view>
			</div>

			<!-- 损伤部位 -->
			<div class="part-item">
				<div class="part-title">损伤部位</div>
				<!-- 头部是否有损伤 -->
				<view class="selectCon">
					<view class="label">头部是否有损伤：</view>
					<radio-group class="radio-group" name="head_injury"
						@change="e => patientInfoRadioChange(e, 'head_face')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.head_face == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.head_face == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 颈部是否有损伤 -->
				<view class="selectCon">
					<view class="label">颈部是否有损伤：</view>
					<radio-group class="radio-group" name="neck" @change="e => patientInfoRadioChange(e, 'neck')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.neck == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.neck == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 躯干是否有损伤 -->
				<view class="selectCon">
					<view class="label">躯干是否有损伤：</view>
					<radio-group class="radio-group" name="trunk" @change="e => patientInfoRadioChange(e, 'trunk')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.trunk == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.trunk == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 上肢是否有损伤 -->
				<view class="selectCon">
					<view class="label">上肢是否有损伤：</view>
					<radio-group class="radio-group" name="upper_limbs"
						@change="e => patientInfoRadioChange(e, 'upper_limbs')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.upper_limbs == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.upper_limbs == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 下肢是否有损伤 -->
				<view class="selectCon">
					<view class="label">下肢是否有损伤：</view>
					<radio-group class="radio-group" name="lower_limbs"
						@change="e => patientInfoRadioChange(e, 'lower_limbs')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.lower_limbs == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.lower_limbs == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 手部是否有损伤 -->
				<view class="selectCon">
					<view class="label">手部是否有损伤：</view>
					<radio-group class="radio-group" name="hands" @change="e => patientInfoRadioChange(e, 'hands')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.hands == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.hands == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 会阴是否有损伤 -->
				<view class="selectCon">
					<view class="label">会阴是否有损伤：</view>
					<radio-group class="radio-group" name="perineum_burn"
						@change="e => patientInfoRadioChange(e, 'perineum_burn')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.perineum_burn == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.perineum_burn == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 腹股沟是否有损伤 -->
				<view class="selectCon">
					<view class="label">腹股沟是否有损伤：</view>
					<radio-group class="radio-group" name="groin_burn"
						@change="e => patientInfoRadioChange(e, 'groin_burn')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.groin_burn == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.groin_burn == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 锁骨下是否有损伤 -->
				<view class="selectCon">
					<view class="label">锁骨下是否有损伤：</view>
					<radio-group class="radio-group" name="subclavian_burn"
						@change="e => patientInfoRadioChange(e, 'subclavian_burn')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.subclavian_burn == '0'" color="#5677fc">
							</radio>无
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.subclavian_burn == '1'" color="#5677fc">
							</radio>有
						</label>
					</radio-group>
				</view>
				<!-- 头皮是否烧伤 -->
				<view class="selectCon">
					<view class="label">头皮是否烧伤：</view>
					<radio-group class="radio-group" name="scalp_burn"
						@change="e => patientInfoRadioChange(e, 'scalp_burn')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.scalp_burn == '0'" color="#5677fc">
							</radio>未烧伤
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.scalp_burn == '1'" color="#5677fc">
							</radio>部分烧伤
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInfo.scalp_burn == '2'" color="#5677fc">
							</radio>完全烧伤
						</label>
					</radio-group>
				</view>
				<!-- 是否有完整未烧伤头皮 -->
				<view class="selectCon">
					<view class="label">是否有完整未烧伤头皮：</view>
					<radio-group class="radio-group" name="has_intact_scalp"
						@change="e => patientInfoRadioChange(e, 'has_intact_scalp')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.has_intact_scalp == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.has_intact_scalp == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
				<!-- 是否合并吸入性损伤 -->
				<view class="selectCon">
					<view class="label">是否合并吸入性损伤：</view>
					<radio-group class="radio-group" name="inhalation_injury"
						@change="e => patientInfoRadioChange(e, 'inhalation_injury')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.inhalation_injury == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.inhalation_injury == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
				<!-- 吸入性损伤程度 -->
				<view class="selectCon">
					<view class="label">吸入性损伤程度：</view>
					<radio-group class="radio-group" name="inhalation_severity"
						@change="e => patientInfoRadioChange(e, 'inhalation_severity')">
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.inhalation_severity == '1'" color="#5677fc">
							</radio>轻度
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInfo.inhalation_severity == '2'" color="#5677fc">
							</radio>中度
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInfo.inhalation_severity == '3'" color="#5677fc">
							</radio>重度
						</label>
						<label class="tui-radio">
							<radio value="9" :checked="patientInfo.inhalation_severity == '9'" color="#5677fc">
							</radio>临床诊断但未分级
						</label>
					</radio-group>
				</view>
				<!-- 是否合并其他创伤 -->
				<view class="selectCon">
					<view class="label">是否合并其他创伤：</view>
					<radio-group class="radio-group" name="trauma" @change="e => patientInfoRadioChange(e, 'trauma')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.trauma == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.trauma == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
			</div>

			<!-- 入院前/转诊前治疗信息 -->
			<div class="part-item">
				<div class="part-title">入院前/转诊前治疗信息</div>
				<!-- 是否进行现场冷疗 -->
				<view class="selectCon">
					<view class="label">是否进行现场冷疗：</view>
					<radio-group class="radio-group" name="cold_therapy"
						@change="e => patientInfoRadioChange(e, 'cold_therapy')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.cold_therapy == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.cold_therapy == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
				<!-- 伤后多久开始冷疗 -->
				<view class="selectCon">
					<view class="label">伤后多久开始冷疗：</view>
					<radio-group class="radio-group" name="cold_therapy_time"
						@change="e => patientInfoRadioChange(e, 'cold_therapy_time')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.cold_therapy_time == '0'" color="#5677fc">
							</radio>小于1小时
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.cold_therapy_time == '1'" color="#5677fc">
							</radio>1-3小时
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInfo.cold_therapy_time == '2'" color="#5677fc">
							</radio>大于3小时
						</label>
						<label class="tui-radio">
							<radio value="3" :checked="patientInfo.cold_therapy_time == '3'" color="#5677fc">
							</radio>不详
						</label>
					</radio-group>
				</view>
				<!-- 冷疗是否充分 -->
				<view class="selectCon">
					<view class="label">冷疗是否充分 （冷疗>30min）：</view>
					<radio-group class="radio-group" name="adequate_cold_therapy"
						@change="e => patientInfoRadioChange(e, 'adequate_cold_therapy')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.adequate_cold_therapy == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.adequate_cold_therapy == '1'" color="#5677fc">
							</radio>是
						</label>
						<label class="tui-radio">
							<radio value="2" :checked="patientInfo.adequate_cold_therapy == '2'" color="#5677fc">
							</radio>不适用
						</label>
					</radio-group>
				</view>
				<!-- 创面是否涂抹不当物品 -->
				<view class="selectCon">
					<view class="label">创面是否涂抹不当物品 (如牙膏、酱油等)：</view>
					<radio-group class="radio-group" name="applied_irrelevant_substances"
						@change="e => patientInfoRadioChange(e, 'applied_irrelevant_substances')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.applied_irrelevant_substances == '0'"
								color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.applied_irrelevant_substances == '1'"
								color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
				<!-- 伤后至首次输液时间 -->
				<view class="selectCon">
					<view class="label">伤后至首次输液时间 (分钟)：</view>
					<input type="number" v-model="patientInfo.injury_to_infusion_time" />
				</view>
				<!-- 入院前液体复苏量（晶体液，单位：ml） -->
				<view class="selectCon">
					<view class="label">入院前液体复苏量（晶体液，单位：ml）：</view>
					<input type="number" v-model="patientInfo.fluid_resuscitation_crystall" />
				</view>
				<!-- 入院前液体复苏量（胶体液，单位：ml） -->
				<view class="selectCon">
					<view class="label">入院前液体复苏量（胶体液，单位：ml）：</view>
					<input type="number" v-model="patientInfo.fluid_resuscitation_ligand" />
				</view>
				<!-- 是否已行深静脉置管 -->
				<view class="selectCon">
					<view class="label">是否已行深静脉置管：</view>
					<radio-group class="radio-group" name="deep_vein_catheter"
						@change="e => patientInfoRadioChange(e, 'deep_vein_catheter')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.deep_vein_catheter == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.deep_vein_catheter == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
				<!-- 是否已行气管插管/气管切开 -->
				<view class="selectCon">
					<view class="label">是否已行气管插管/气管切开：</view>
					<radio-group class="radio-group" name="tracheostomy"
						@change="e => patientInfoRadioChange(e, 'tracheostomy')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.tracheostomy == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.tracheostomy == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
				<!-- 是否已行机械通气 -->
				<view class="selectCon">
					<view class="label">是否已行机械通气：</view>
					<radio-group class="radio-group" name="mechanical_ventilation"
						@change="e => patientInfoRadioChange(e, 'mechanical_ventilation')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.mechanical_ventilation == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.mechanical_ventilation == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
				<!-- 入院前是否输血 -->
				<view class="selectCon">
					<view class="label">入院前是否输血：</view>
					<radio-group class="radio-group" name="blood_transfusion"
						@change="e => patientInfoRadioChange(e, 'blood_transfusion')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.blood_transfusion == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.blood_transfusion == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
			</div>

			<!-- 入院即刻状态评估 -->
			<div class="part-item">
				<div class="part-title">入院即刻状态评估</div><!-- 体温 -->
				<view class="selectCon">
					<view class="label">体温（单位：°C）：</view>
					<input type="number" v-model="patientInfo.max_temperature" />
				</view>
				<!-- 心率 -->
				<view class="selectCon">
					<view class="label">心率（单位：次/分）：</view>
					<input type="number" v-model="patientInfo.heart_rate" />
				</view>
				<!-- 呼吸频率 -->
				<view class="selectCon">
					<view class="label">呼吸频率（单位：次/分）：</view>
					<input type="number" v-model="patientInfo.breath_rate" />
				</view>
				<!-- 收缩压 -->
				<view class="selectCon">
					<view class="label">收缩压（单位：mmHg）：</view>
					<input type="number" v-model="patientInfo.systolic_bp" />
				</view>
				<!-- 舒张压 -->
				<view class="selectCon">
					<view class="label">舒张压（单位：mmHg）：</view>
					<input type="number" v-model="patientInfo.diastolic_bp" />
				</view>
				<!-- 格拉斯哥昏迷评分 -->
				<view class="selectCon">
					<view class="label">格拉斯哥昏迷评分（GCS）：</view>
					<input type="number" v-model="patientInfo.gcs_score" />
				</view>
				<!-- 入院时是否存在休克 -->
				<view class="selectCon">
					<view class="label">入院时是否存在休克：</view>
					<radio-group class="radio-group" name="shock_admission"
						@change="e => patientInfoRadioChange(e, 'shock_admission')">
						<label class="tui-radio">
							<radio value="0" :checked="patientInfo.shock_admission == '0'" color="#5677fc">
							</radio>否
						</label>
						<label class="tui-radio">
							<radio value="1" :checked="patientInfo.shock_admission == '1'" color="#5677fc">
							</radio>是
						</label>
					</radio-group>
				</view>
			</div>

			<!-- 入院即刻辅助检查及创面照片 -->
			<div class="part-item">
				<div class="part-title">入院即刻辅助检查及创面照片(注意拍摄完整报告结果，需拍摄日期，可上传多张照片，若没有相关检查结果可跳过，非必传项)</div>

				<!-- 血常规图片 -->
				<view class="selectCon">
					<view class="label">血常规图片：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.blood_routine_report_images ? patientInfo.blood_routine_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl"
						@complete="uploadImages($event, 'blood_routine_report_images')" />
				</view>

				<!-- 凝血功能 -->
				<view class="selectCon">
					<view class="label">凝血功能：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.coagulation_report_images ? patientInfo.coagulation_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl"
						@complete="uploadImages($event, 'coagulation_report_images')" />
				</view>
				<!-- 血生化 -->
				<view class="selectCon">
					<view class="label">血生化：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.blood_biochemistry_report_images ? patientInfo.blood_biochemistry_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl"
						@complete="uploadImages($event, 'blood_biochemistry_report_images')" />
				</view>
				<!-- 血气分析 -->
				<view class="selectCon">
					<view class="label">血气分析：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.abg_report_images ? patientInfo.abg_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'abg_report_images')" />
				</view>
				<!-- 感染指标（如CRP、PCT） -->
				<view class="selectCon">
					<view class="label">感染指标（如CRP、PCT）：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.infection_markers_report_images ? patientInfo.infection_markers_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl"
						@complete="uploadImages($event, 'infection_markers_report_images')" />
				</view>
				<!-- 创面分泌物培养和药敏 -->
				<view class="selectCon">
					<view class="label">创面分泌物培养和药敏：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.wound_culture_report_images ? patientInfo.wound_culture_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl"
						@complete="uploadImages($event, 'wound_culture_report_images')" />
				</view>
				<!-- 血培养和药敏 -->
				<view class="selectCon">
					<view class="label">血培养和药敏：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.blood_culture_report_images ? patientInfo.blood_culture_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl"
						@complete="uploadImages($event, 'blood_culture_report_images')" />
				</view>
				<!-- 任何部位的X线 -->
				<view class="selectCon">
					<view class="label">任何部位的X线：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.xray_report_images ? patientInfo.xray_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'xray_report_images')" />
				</view>
				<!-- 任何部位的CT -->
				<view class="selectCon">
					<view class="label">任何部位的CT：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.ct_report_images ? patientInfo.ct_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'ct_report_images')" />
				</view>
				<!-- 任何部位的MRI -->
				<view class="selectCon">
					<view class="label">任何部位的MRI：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.mri_report_images ? patientInfo.mri_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'mri_report_images')" />
				</view>
				<!-- 任何部位的B超 -->
				<view class="selectCon">
					<view class="label">任何部位的B超：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.ultrasonics_report_images ? patientInfo.ultrasonics_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl"
						@complete="uploadImages($event, 'ultrasonics_report_images')" />
				</view>
				<!-- 心电图 -->
				<view class="selectCon">
					<view class="label">心电图：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.ecg_report_images ? patientInfo.ecg_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'ecg_report_images')" />
				</view>
				<!-- 除上述辅助检查外的其他辅助检查结果 -->
				<view class="selectCon">
					<view class="label">除上述辅助检查外的其他辅助检查结果：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.other_report_images ? patientInfo.other_report_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'other_report_images')" />
				</view>
				<!-- 躯干取样部位创面和正常皮肤的照片路径 -->
				<view class="selectCon">
					<view class="label">躯干取样部位创面和正常皮肤的照片：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.trunk_sample_images ? patientInfo.trunk_sample_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'trunk_sample_images')" />
				</view>
				<!-- 四肢取样部位创面和正常皮肤的照片 -->
				<view class="textareaCon">
					<view class="label">躯干创面具体取样部位：</view>
					<textarea placeholder="请输入" v-model="patientInfo.epithelialization_trunk" />
				</view>
				<!-- 躯干正常皮肤具体取样部位 -->
				<view class="textareaCon">
					<view class="label">躯干正常皮肤具体取样部位：</view>
					<textarea placeholder="请输入" v-model="patientInfo.epithelialization_normal" />
				</view>
				<!-- 四肢取样部位创面和正常皮肤的照片 -->
				<view class="selectCon">
					<view class="label">四肢取样部位创面和正常皮肤的照片：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.limb_sample_images ? patientInfo.limb_sample_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'limb_sample_images')" />
				</view>
				<!-- 四肢创面具体取样部位 -->
				<view class="textareaCon">
					<view class="label">四肢创面具体取样部位：</view>
					<textarea placeholder="请输入" v-model="patientInfo.epithelialization_limbs_trunk" />
				</view>
				<!-- 四肢正常皮肤具体取样部位 -->
				<view class="textareaCon">
					<view class="label">四肢正常皮肤具体取样部位：</view>
					<textarea placeholder="请输入" v-model="patientInfo.epithelialization_limbs_normal" />
				</view>
				<!-- 除上述照片的患者其他照片 -->
				<view class="selectCon">
					<view class="label">除上述照片的患者其他照片：</view>
					<tui-upload :header="uploaderHeader" :limit="9"
						:value="patientInfo.other_images ? patientInfo.other_images.split(',') : []"
						:serverUrl="fileUploadServerUrl" @complete="uploadImages($event, 'other_images')" />
				</view>
			</div>







			<!-- 其他字段   PC端 没有 -->
			<!-- 是否存在骨折 -->
			<view class="selectCon">
				<view class="label">是否存在骨折：</view>
				<radio-group class="radio-group" name="fracture" @change="e => patientInfoRadioChange(e, 'fracture')">
					<label class="tui-radio">
						<radio value="0" :checked="patientInfo.fracture == '0'" color="#5677fc">
						</radio>否
					</label>
					<label class="tui-radio">
						<radio value="1" :checked="patientInfo.fracture == '1'" color="#5677fc">
						</radio>是
					</label>
				</radio-group>
			</view>
			<!-- 骨折部位描述 -->
			<view class="textareaCon">
				<view class="label">骨折部位描述：</view>
				<textarea placeholder="请输入" v-model="patientInfo.fracture_site" />
			</view>
			<!-- 是否存在肺爆震伤/冲击伤 -->
			<view class="selectCon">
				<view class="label">是否存在肺爆震伤/冲击伤：</view>
				<radio-group class="radio-group" name="blast_injury"
					@change="e => patientInfoRadioChange(e, 'blast_injury')">
					<label class="tui-radio">
						<radio value="0" :checked="patientInfo.blast_injury == '0'" color="#5677fc">
						</radio>否
					</label>
					<label class="tui-radio">
						<radio value="1" :checked="patientInfo.blast_injury == '1'" color="#5677fc">
						</radio>是
					</label>
				</radio-group>
			</view>
			<!-- 是否存在内脏损伤 -->
			<view class="selectCon">
				<view class="label">是否存在内脏损伤：</view>
				<radio-group class="radio-group" name="visceral_trauma"
					@change="e => patientInfoRadioChange(e, 'visceral_trauma')">
					<label class="tui-radio">
						<radio value="0" :checked="patientInfo.visceral_trauma == '0'" color="#5677fc">
						</radio>否
					</label>
					<label class="tui-radio">
						<radio value="1" :checked="patientInfo.visceral_trauma == '1'" color="#5677fc">
						</radio>是
					</label>
				</radio-group>
			</view>
			<!-- 内脏损伤部位描述 -->
			<view class="textareaCon">
				<view class="label">内脏损伤部位描述：</view>
				<textarea placeholder="请输入" v-model="patientInfo.visceral_trauma_site" />
			</view>




			<tui-form-button v-on:click="patientInfoSave()" height="2.6" radius="50px">确定</tui-form-button>
		</view>
	</view>
</template>

<script>
	import config from "@/common/config";
	import dayjs from 'dayjs'
	import {
		aboBloodOptions,
		maritalOptions,
		rhBloodOptions,
		workInjuryOptions,
		treatmentTypeOptions,
		medicalInsuranceTypeOptions,
		causeOfInjuryidOptions,
		useEmptyPatientInfoForm
	} from './data'
	export default {
		props: {
			nativePlaceList: {
				type: Array,
				required: true
			},
			hospitalProvinceList: {
				type: Array,
				required: true
			},
			hospitalList: {
				type: Array,
				required: true
			},
			hospitalLevelList: {
				type: Array,
				required: true
			},
			treatmentModeList: {
				type: Array,
				required: true
			},
			patientId: {
				type: String,
				required: true
			},
		},
		data() {
			return {
				statusBarHeight: 0,
				showPatientInfoSelectType: '',
				hospitalLevelShow: false,
				treatmentModeShow: false,
				hospitalShow: false,
				aboBloodShow: false,
				nativePlaceShow: false,
				hospitalProvinceShow: false,
				rhBloodShow: false,
				uploaderHeader: {
					Authorization: `${uni.getStorageSync("thorui_token")}`,
				},
				fileUploadServerUrl: config.baseUrl + "/api/ajax/upload",
				aboBloodOptions,
				maritalOptions,
				rhBloodOptions,
				workInjuryOptions,
				treatmentTypeOptions,
				medicalInsuranceTypeOptions,
				causeOfInjuryidOptions,
				patientInfo: useEmptyPatientInfoForm(),
			}
		},
		computed: {
			injury_to_admission_hours() {
				if (!this.patientInfo.injury_date || !this.patientInfo.admission_date) return 0
				return ((dayjs(this.patientInfo.admission_date).unix() - dayjs(this.patientInfo.injury_date).unix()) /
					3600).toFixed(2)
			},
			tbsa() {
				return (this.patientInfo.superficial_ii ? Number(this.patientInfo.superficial_ii) : 0) + (this.patientInfo
					.deep_ii ? Number(this.patientInfo.deep_ii) : 0) + (this.patientInfo.superficial_iii ? Number(this
					.patientInfo.superficial_iii) : 0) + (this.patientInfo.deep_iv ? Number(this.patientInfo.deep_iv) :
					0)
			},
			superficial_ii() {
				return (this.patientInfo.superficial_ii_head ? Number(this.patientInfo.superficial_ii_head) : 0) +
					(this.patientInfo.superficial_ii_neck ? Number(this.patientInfo.superficial_ii_neck) : 0) +
					(this.patientInfo.superficial_ii_anteriortrunk ? Number(this.patientInfo
						.superficial_ii_anteriortrunk) : 0) +
					(this.patientInfo.superficial_ii_postrunk ? Number(this.patientInfo.superficial_ii_postrunk) : 0) +
					(this.patientInfo.superficial_ii_rbutt ? Number(this.patientInfo.superficial_ii_rbutt) : 0) +
					(this.patientInfo.superficial_ii_lbutt ? Number(this.patientInfo.superficial_ii_lbutt) : 0) +
					(this.patientInfo.superficial_ii_peri ? Number(this.patientInfo.superficial_ii_peri) : 0) +
					(this.patientInfo.superficial_ii_rua ? Number(this.patientInfo.superficial_ii_rua) : 0) +
					(this.patientInfo.superficial_ii_lua ? Number(this.patientInfo.superficial_ii_lua) : 0) +
					(this.patientInfo.superficial_ii_rfa ? Number(this.patientInfo.superficial_ii_rfa) : 0) +
					(this.patientInfo.superficial_ii_lfa ? Number(this.patientInfo.superficial_ii_lfa) : 0) +
					(this.patientInfo.superficial_ii_rhand ? Number(this.patientInfo.superficial_ii_rhand) : 0) +
					(this.patientInfo.superficial_ii_lhand ? Number(this.patientInfo.superficial_ii_lhand) : 0) +
					(this.patientInfo.superficial_ii_rthigh ? Number(this.patientInfo.superficial_ii_rthigh) : 0) +
					(this.patientInfo.superficial_ii_lthigh ? Number(this.patientInfo.superficial_ii_lthigh) : 0) +
					(this.patientInfo.superficial_ii_rleg ? Number(this.patientInfo.superficial_ii_rleg) : 0) +
					(this.patientInfo.superficial_ii_lleg ? Number(this.patientInfo.superficial_ii_lleg) : 0) +
					(this.patientInfo.superficial_ii_rfoot ? Number(this.patientInfo.superficial_ii_rfoot) : 0) +
					(this.patientInfo.superficial_ii_lfoot ? Number(this.patientInfo.superficial_ii_lfoot) : 0)
			},
			deep_ii() {
				return (this.patientInfo.deep_ii_head ? Number(this.patientInfo.deep_ii_head) : 0) +
					(this.patientInfo.deep_ii_neck ? Number(this.patientInfo.deep_ii_neck) : 0) +
					(this.patientInfo.deep_ii_anteriortrunk ? Number(this.patientInfo.deep_ii_anteriortrunk) : 0) +
					(this.patientInfo.deep_ii_postrunk ? Number(this.patientInfo.deep_ii_postrunk) : 0) +
					(this.patientInfo.deep_ii_rbutt ? Number(this.patientInfo.deep_ii_rbutt) : 0) +
					(this.patientInfo.deep_ii_lbutt ? Number(this.patientInfo.deep_ii_lbutt) : 0) +
					(this.patientInfo.deep_ii_peri ? Number(this.patientInfo.deep_ii_peri) : 0) +
					(this.patientInfo.deep_ii_rua ? Number(this.patientInfo.deep_ii_rua) : 0) +
					(this.patientInfo.deep_ii_lua ? Number(this.patientInfo.deep_ii_lua) : 0) +
					(this.patientInfo.deep_ii_rfa ? Number(this.patientInfo.deep_ii_rfa) : 0) +
					(this.patientInfo.deep_ii_lfa ? Number(this.patientInfo.deep_ii_lfa) : 0) +
					(this.patientInfo.deep_ii_rhand ? Number(this.patientInfo.deep_ii_rhand) : 0) +
					(this.patientInfo.deep_ii_lhand ? Number(this.patientInfo.deep_ii_lhand) : 0) +
					(this.patientInfo.deep_ii_rthigh ? Number(this.patientInfo.deep_ii_rthigh) : 0) +
					(this.patientInfo.deep_ii_lthigh ? Number(this.patientInfo.deep_ii_lthigh) : 0) +
					(this.patientInfo.deep_ii_rleg ? Number(this.patientInfo.deep_ii_rleg) : 0) +
					(this.patientInfo.deep_ii_lleg ? Number(this.patientInfo.deep_ii_lleg) : 0) +
					(this.patientInfo.deep_ii_rfoot ? Number(this.patientInfo.deep_ii_rfoot) : 0) +
					(this.patientInfo.deep_ii_lfoot ? Number(this.patientInfo.deep_ii_lfoot) : 0)
			},
			superficial_iii() {
				return (this.patientInfo.superficial_iii_head ? Number(this.patientInfo.superficial_iii_head) : 0) +
					(this.patientInfo.superficial_iii_neck ? Number(this.patientInfo.superficial_iii_neck) : 0) +
					(this.patientInfo.superficial_iii_anteriortrunk ? Number(this.patientInfo
						.superficial_iii_anteriortrunk) : 0) +
					(this.patientInfo.superficial_iii_postrunk ? Number(this.patientInfo.superficial_iii_postrunk) : 0) +
					(this.patientInfo.superficial_iii_rbutt ? Number(this.patientInfo.superficial_iii_rbutt) : 0) +
					(this.patientInfo.superficial_iii_lbutt ? Number(this.patientInfo.superficial_iii_lbutt) : 0) +
					(this.patientInfo.superficial_iii_peri ? Number(this.patientInfo.superficial_iii_peri) : 0) +
					(this.patientInfo.superficial_iii_rua ? Number(this.patientInfo.superficial_iii_rua) : 0) +
					(this.patientInfo.superficial_iii_lua ? Number(this.patientInfo.superficial_iii_lua) : 0) +
					(this.patientInfo.superficial_iii_rfa ? Number(this.patientInfo.superficial_iii_rfa) : 0) +
					(this.patientInfo.superficial_iii_lfa ? Number(this.patientInfo.superficial_iii_lfa) : 0) +
					(this.patientInfo.superficial_iii_rhand ? Number(this.patientInfo.superficial_iii_rhand) : 0) +
					(this.patientInfo.superficial_iii_lhand ? Number(this.patientInfo.superficial_iii_lhand) : 0) +
					(this.patientInfo.superficial_iii_rthigh ? Number(this.patientInfo.superficial_iii_rthigh) : 0) +
					(this.patientInfo.superficial_iii_lthigh ? Number(this.patientInfo.superficial_iii_lthigh) : 0) +
					(this.patientInfo.superficial_iii_rleg ? Number(this.patientInfo.superficial_iii_rleg) : 0) +
					(this.patientInfo.superficial_iii_lleg ? Number(this.patientInfo.superficial_iii_lleg) : 0) +
					(this.patientInfo.superficial_iii_rfoot ? Number(this.patientInfo.superficial_iii_rfoot) : 0) +
					(this.patientInfo.superficial_iii_lfoot ? Number(this.patientInfo.superficial_iii_lfoot) : 0)
			},
			deep_iv() {
				return (this.patientInfo.deep_iv_head ? Number(this.patientInfo.deep_iv_head) : 0) +
					(this.patientInfo.deep_iv_neck ? Number(this.patientInfo.deep_iv_neck) : 0) +
					(this.patientInfo.deep_iv_anteriortrunk ? Number(this.patientInfo.deep_iv_anteriortrunk) : 0) +
					(this.patientInfo.deep_iv_postrunk ? Number(this.patientInfo.deep_iv_postrunk) : 0) +
					(this.patientInfo.deep_iv_rbutt ? Number(this.patientInfo.deep_iv_rbutt) : 0) +
					(this.patientInfo.deep_iv_lbutt ? Number(this.patientInfo.deep_iv_lbutt) : 0) +
					(this.patientInfo.deep_iv_peri ? Number(this.patientInfo.deep_iv_peri) : 0) +
					(this.patientInfo.deep_iv_rua ? Number(this.patientInfo.deep_iv_rua) : 0) +
					(this.patientInfo.deep_iv_lua ? Number(this.patientInfo.deep_iv_lua) : 0) +
					(this.patientInfo.deep_iv_rfa ? Number(this.patientInfo.deep_iv_rfa) : 0) +
					(this.patientInfo.deep_iv_lfa ? Number(this.patientInfo.deep_iv_lfa) : 0) +
					(this.patientInfo.deep_iv_rhand ? Number(this.patientInfo.deep_iv_rhand) : 0) +
					(this.patientInfo.deep_iv_lhand ? Number(this.patientInfo.deep_iv_lhand) : 0) +
					(this.patientInfo.deep_iv_rthigh ? Number(this.patientInfo.deep_iv_rthigh) : 0) +
					(this.patientInfo.deep_iv_lthigh ? Number(this.patientInfo.deep_iv_lthigh) : 0) +
					(this.patientInfo.deep_iv_rleg ? Number(this.patientInfo.deep_iv_rleg) : 0) +
					(this.patientInfo.deep_iv_lleg ? Number(this.patientInfo.deep_iv_lleg) : 0) +
					(this.patientInfo.deep_iv_rfoot ? Number(this.patientInfo.deep_iv_rfoot) : 0) +
					(this.patientInfo.deep_iv_lfoot ? Number(this.patientInfo.deep_iv_lfoot) : 0)
			}
		},
		methods: {
			setForm(patientInfo) {
				this.patientInfo = patientInfo
				this.patientInfo.cause_of_injuryid_text = this.causeOfInjuryidOptions.find(o => o.id == this.patientInfo
					.cause_of_injuryid)?.name
				this.patientInfo.abo_blood_type_text = this.aboBloodOptions.find(o => o.id == this.patientInfo
					.abo_blood_type)?.name
				this.patientInfo.rh_blood_type_text = this.rhBloodOptions.find(o => o.id == this.patientInfo
					.rh_blood_type)?.name
				this.patientInfo.marital_status_text = this.maritalOptions.find(o => o.id == this.patientInfo
					.marital_status)?.name
				this.patientInfo.work_injury_text = this.workInjuryOptions.find(o => o.id == this.patientInfo
					.work_injury)?.name
				this.patientInfo.medical_insurance_type_text = this.medicalInsuranceTypeOptions.find(o => o.id == this.patientInfo
					.medical_insurance_type)?.name
				this.patientInfo.treatment_type_text = this.treatmentTypeOptions.find(o => o.id == this.patientInfo
					.treatment_type)?.name
			},
			uploadImages(e, filed) {
				console.log(e);
				this.patientInfo[filed] = e.imgArr.join(',');
			},
			patientInfoSelectConfirm(e, valueLabel, textLabel) {
				this.patientInfo[valueLabel] = e.options.id;
				this.patientInfo[textLabel] = e.options.name;
				this.showPatientInfoSelectType = '';
			},
			birthDateShow(index) {
				if (index === 0) {
					this.$refs.birthDayPicker.show()
				} else if (index === 1) {
					this.$refs.injuryDateTime.show()
				} else if (index === 2) {
					this.$refs.admissionDateTime.show()
				}
			},
			buildPatientInfo() {
				this.patientInfo = {
					...this.patientInfo,
					id: this.patientId,
					superficial_ii: this.superficial_ii,
					deep_ii: this.deep_ii,
					superficial_iii: this.superficial_iii,
					deep_iv: this.deep_iv,
					tbsa: this.tbsa,
					injury_to_admission_hours: this.injury_to_admission_hours,
					// 头部
					superficial_ii_head: this.patientInfo.superficial_ii_head || 0,
					deep_ii_head: this.patientInfo.deep_ii_head || 0,
					superficial_iii_head: this.patientInfo.superficial_iii_head || 0,
					deep_iv_head: this.patientInfo.deep_iv_head || 0,
					// 颈部
					superficial_ii_neck: this.patientInfo.superficial_ii_neck || 0,
					deep_ii_neck: this.patientInfo.deep_ii_neck || 0,
					superficial_iii_neck: this.patientInfo.superficial_iii_neck || 0,
					deep_iv_neck: this.patientInfo.deep_iv_neck || 0,
					// 前躯干
					superficial_ii_anteriortrunk: this.patientInfo.superficial_ii_anteriortrunk || 0,
					deep_ii_anteriortrunk: this.patientInfo.deep_ii_anteriortrunk || 0,
					superficial_iii_anteriortrunk: this.patientInfo.superficial_iii_anteriortrunk || 0,
					deep_iv_anteriortrunk: this.patientInfo.deep_iv_anteriortrunk || 0,
					// 后躯干
					superficial_ii_postrunk: this.patientInfo.superficial_ii_postrunk || 0,
					deep_ii_postrunk: this.patientInfo.deep_ii_postrunk || 0,
					superficial_iii_postrunk: this.patientInfo.superficial_iii_postrunk || 0,
					deep_iv_postrunk: this.patientInfo.deep_iv_postrunk || 0,
					// 右臀部
					superficial_ii_rbutt: this.patientInfo.superficial_ii_rbutt || 0,
					deep_ii_rbutt: this.patientInfo.deep_ii_rbutt || 0,
					superficial_iii_rbutt: this.patientInfo.superficial_iii_rbutt || 0,
					deep_iv_rbutt: this.patientInfo.deep_iv_rbutt || 0,
					// 左臀部
					superficial_ii_lbutt: this.patientInfo.superficial_ii_lbutt || 0,
					deep_ii_lbutt: this.patientInfo.deep_ii_lbutt || 0,
					superficial_iii_lbutt: this.patientInfo.superficial_iii_lbutt || 0,
					deep_iv_lbutt: this.patientInfo.deep_iv_lbutt || 0,
					// 会阴部
					superficial_ii_peri: this.patientInfo.superficial_ii_peri || 0,
					deep_ii_peri: this.patientInfo.deep_ii_peri || 0,
					superficial_iii_peri: this.patientInfo.superficial_iii_peri || 0,
					deep_iv_peri: this.patientInfo.deep_iv_peri || 0,
					// 右上肢
					superficial_ii_rua: this.patientInfo.superficial_ii_rua || 0,
					deep_ii_rua: this.patientInfo.deep_ii_rua || 0,
					superficial_iii_rua: this.patientInfo.superficial_iii_rua || 0,
					deep_iv_rua: this.patientInfo.deep_iv_rua || 0,
					// 左上肢
					superficial_ii_lua: this.patientInfo.superficial_ii_lua || 0,
					deep_ii_lua: this.patientInfo.deep_ii_lua || 0,
					superficial_iii_lua: this.patientInfo.superficial_iii_lua || 0,
					deep_iv_lua: this.patientInfo.deep_iv_lua || 0,
					// 右前肢
					superficial_ii_rfa: this.patientInfo.superficial_ii_rfa || 0,
					deep_ii_rfa: this.patientInfo.deep_ii_rfa || 0,
					superficial_iii_rfa: this.patientInfo.superficial_iii_rfa || 0,
					deep_iv_rfa: this.patientInfo.deep_iv_rfa || 0,
					// 左前肢
					superficial_ii_lfa: this.patientInfo.superficial_ii_lfa || 0,
					deep_ii_lfa: this.patientInfo.deep_ii_lfa || 0,
					superficial_iii_lfa: this.patientInfo.superficial_iii_lfa || 0,
					deep_iv_lfa: this.patientInfo.deep_iv_lfa || 0,
					// 右手
					superficial_ii_rhand: this.patientInfo.superficial_ii_rhand || 0,
					deep_ii_rhand: this.patientInfo.deep_ii_rhand || 0,
					superficial_iii_rhand: this.patientInfo.superficial_iii_rhand || 0,
					deep_iv_rhand: this.patientInfo.deep_iv_rhand || 0,
					// 左手
					superficial_ii_lhand: this.patientInfo.superficial_ii_lhand || 0,
					deep_ii_lhand: this.patientInfo.deep_ii_lhand || 0,
					superficial_iii_lhand: this.patientInfo.superficial_iii_lhand || 0,
					deep_iv_lhand: this.patientInfo.deep_iv_lhand || 0,
					// 右大腿
					superficial_ii_rthigh: this.patientInfo.superficial_ii_rthigh || 0,
					deep_ii_rthigh: this.patientInfo.deep_ii_rthigh || 0,
					superficial_iii_rthigh: this.patientInfo.superficial_iii_rthigh || 0,
					deep_iv_rthigh: this.patientInfo.deep_iv_rthigh || 0,
					// 左大腿
					superficial_ii_lthigh: this.patientInfo.superficial_ii_lthigh || 0,
					deep_ii_lthigh: this.patientInfo.deep_ii_lthigh || 0,
					superficial_iii_lthigh: this.patientInfo.superficial_iii_lthigh || 0,
					deep_iv_lthigh: this.patientInfo.deep_iv_lthigh || 0,
					// 右小腿
					superficial_ii_rleg: this.patientInfo.superficial_ii_rleg || 0,
					deep_ii_rleg: this.patientInfo.deep_ii_rleg || 0,
					superficial_iii_rleg: this.patientInfo.superficial_iii_rleg || 0,
					deep_iv_rleg: this.patientInfo.deep_iv_rleg || 0,
					// 左小腿
					superficial_ii_lleg: this.patientInfo.superficial_ii_lleg || 0,
					deep_ii_lleg: this.patientInfo.deep_ii_lleg || 0,
					superficial_iii_lleg: this.patientInfo.superficial_iii_lleg || 0,
					deep_iv_lleg: this.patientInfo.deep_iv_lleg || 0,
					// 右足
					superficial_ii_rfoot: this.patientInfo.superficial_ii_rfoot || 0,
					deep_ii_rfoot: this.patientInfo.deep_ii_rfoot || 0,
					superficial_iii_rfoot: this.patientInfo.superficial_iii_rfoot || 0,
					deep_iv_rfoot: this.patientInfo.deep_iv_rfoot || 0,
					// 左足
					superficial_ii_lfoot: this.patientInfo.superficial_ii_lfoot || 0,
					deep_ii_lfoot: this.patientInfo.deep_ii_lfoot || 0,
					superficial_iii_lfoot: this.patientInfo.superficial_iii_lfoot || 0,
					deep_iv_lfoot: this.patientInfo.deep_iv_lfoot || 0,
				}
			},
			patientInfoSave() {
				this.buildPatientInfo();
				console.log(this.patientInfo);
				this.http
					.post("/api/patient/add", {
						data: this.patientInfo,
					})
					.then((res) => {
						if (res.data.code == 1) {
							uni.showToast({
								title: res.data.msg,
								icon: 'success',
							});
							// let params = {
							// 	title: res.data.msg,
							// 	imgUrl: "/static/images/toast/check-circle.png",
							// 	icon: true,
							// };
							// this.$refs.toast && this.$refs.toast.show(params);
						} else {
							let params = {
								title: res.data.msg,
								imgUrl: "/static/images/toast/fail-circle.png",
								icon: true,
							};
							// this.$refs.toast && this.$refs.toast.show(params);
						}
					})
					.catch((err) => {});
			},


			patientInfoRadioChange(e, filed) {
				this.patientInfo[filed] = e.detail.value;
			},
			nativePlaceConfirm(e) {
				this.patientInfo.native_place = e.options.text;
				this.nativePlaceShow = false;
			},

			hospitalProvinceConfirm(e) {
				this.patientInfo.hospital_province = e.options.text;
				this.hospitalProvinceShow = false;
			},

			treatmentModeConfirm(e) {
				this.patientInfo.treatment_mode = e.options.text;
				this.patientInfo.treatment_mode_text = e.options.text;
				this.treatmentModeShow = false;
			},
			hospitalConfirm(e) {
				this.patientInfo.hospital_id_text = e.options.text;
				this.patientInfo.hospital_id = e.options.value;
				this.hospitalShow = false;
			},
			aboBloodConfirm(e) {
				this.patientInfo.abo_blood_type = e.options.id;
				this.patientInfo.abo_blood_type_text = e.options.name;
				this.aboBloodShow = false;
			},

			hospitalLevelConfirm(e) {
				this.patientInfo.hospital_level_text = e.options.text;
				this.patientInfo.hospital_level = e.options.text;
				this.hospitalLevelShow = false;
			},

			rhBloodConfirm(e) {
				this.patientInfo.rh_blood_type = e.options.id;
				this.patientInfo.rh_blood_type_text = e.options.name;
				this.rhBloodShow = false;
			},

		}
	}
</script>

<style scoped lang="scss">
	.selectCon,
	.textareaCon,
	textarea {
		font-size: 24rpx !important;
	}

	.selectCon {
		display: flex;
		align-items: center;
		gap: 10rpx;
		border-bottom: solid 1px rgba(245, 245, 245, 1);
		padding-bottom: 25rpx;
		margin-bottom: 35rpx;
		flex-wrap: wrap;

		.label {
			font-weight: 500;
			// font-size: 26rpx;
			color: #8e8f9b;
			width: 190rpx;
		}

		.switch {
			width: 300rpx !important;
		}

		.con {
			font-weight: 500;
			// font-size: 28rpx;
			color: #333333;
			flex: 1;
			text-align: right;
		}

		input {
			border: none;
			font-weight: 500;
			font-size: 28rpx;
			color: #333333;
			text-align: right;
			flex: 1;
		}
	}

	.textareaCon {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 27rpx;

		textarea {
			margin-top: 12rpx;
			box-sizing: border-box;
			padding: 12rpx;
			border-radius: 12rpx;
			background-color: rgb(247, 247, 247);
			border: none;
			font-weight: 500;
			// font-size: 28rpx;
			color: #333333;
			min-height: 240rpx;
			width: 100%;
		}

		.label {
			width: 100% !important;
			font-weight: 500;
			// font-size: 0.8125rem;
			color: #8e8f9b;
			width: 5.9375rem;
		}
	}

	.class-name {
		font-weight: 500;
		font-size: 26rpx;
		color: #8e8f9b;
		margin-bottom: 26rpx;
	}

	.tui-switch__input {
		transform: scale(0.75) !important;
	}

	.radio-group {
		font-size: 24rpx;
	}

	.tui-radio {
		margin-right: 21rpx;
		display: inline-block;
		margin-bottom: 21rpx;
	}

	.part-title {
		font-size: 21rpx;
		margin-bottom: 21rpx;
		color: #333;
		padding: 12rpx;
		font-weight: bold;
		background-color: #f1f1f1;
		text-align: center;
	}
</style>